home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / base-files.preinst < prev    next >
Text File  |  2008-10-20  |  544b  |  22 lines

  1. #!/bin/sh
  2. set -e
  3. if dpkg --compare-versions "$2" lt-nl "2.1.6"; then
  4.   if [ -d /floppy ]; then
  5.     touch /etc/base-files.create-floppy
  6.   fi
  7.   if [ -d /cdrom ]; then
  8.     touch /etc/base-files.create-cdrom
  9.   fi
  10.   if [ -d /initrd ]; then
  11.     touch /etc/base-files.create-initrd
  12.   fi
  13. fi
  14. if dpkg --compare-versions "$2" lt-nl "2.1.16"; then
  15.   if [ -L /var/spool/mail ]; then
  16.     find /var/spool/mail -printf "%l\n" > /etc/base-files.mailsymlink
  17.   fi
  18. fi
  19. if dpkg --compare-versions "$2" lt-nl "2.2.6"; then
  20.   echo "lenny/sid" > /etc/debian_version
  21. fi
  22.